home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
fglqbx10.zip
/
05-08.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-05
|
549b
|
35 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
CONST Colors = 16
CONST RectWidth = 40
Mode = FGgetmode
FGsetmode 16
BaseColor = 0
MinX = 0
MaxX = RectWidth - 1
FOR RectColor = 0 TO Colors-1
FGpalette RectColor, 0
FGsetcolor RectColor
FGrect MinX, MaxX, 0, 349
MinX = MaxX + 1
MaxX = MaxX + RectWidth
NEXT
WHILE BaseColor < Colors*4
FOR RectColor = 0 TO Colors-1
FGpalette RectColor, BaseColor+RectColor
NEXT
BaseColor = BaseColor + Colors
FGwaitkey
WEND
FGsetmode Mode
FGreset
END